package dao;

import java.sql.SQLException;
import java.util.List;

import entity.User;

public interface UserDao
{
    public int add(User u) throws SQLException;
    
    public int delete(int uid) throws SQLException;
    
    public int update(User user) throws SQLException;
    public User selectName(String name) throws SQLException;
  //
    public List que(String name)throws SQLException;
    public List query() throws SQLException;
}
